import { ajax } from "../utils";

//列表
export const getlist=(data)=>{
    return ajax('manager',data);
}
//权限
export const getrole=(loading=false)=>{
    return ajax('manager/allrole',{},'get',loading);
}
//权限
export const getgroup_id=(data,loading=false)=>{
    return ajax('manager/getgroupid',data,'get',loading);
}

//添加.修改.删除
export const post=(path,data)=>{
    return ajax('manager/'+path,data,'post');
}